<?php 
$path = '../Mkart/';
include_once($path."common.php");

$sql_op_C = "select name from data order by id" ;
$result_op_C = mysql_query($sql_op_C) ;
$row_op_C = mysql_fetch_object($result_op_C) ;
$total = mysql_num_rows($result_op_C) ;
for ($m=0 ; $m < mysql_num_rows($result_op_C); $m++){
$op_C01 = $row_op_C -> name ;

$res[$m] = array('name' => $op_C01);

$row_op_C = mysql_fetch_object($result_op_C) ;
}

echo json_encode($res) ;

?>